package cn.calm.database.entity;

import javax.persistence.Id;

import cn.calm.commons.entity.BaseEntity;

public class ColumnInfo implements BaseEntity{
/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	//	private String name;
	private String jdbcType;
	private int length;

//	public String getName() {
//		return name;
//	}
//
//	public void setName(String name) {
//		this.name = name;
//	}

	public String getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(String jdbcType) {
		this.jdbcType = jdbcType;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	@Override
	public Object getValue() {
		return getId();
	}

	@Override
	public String getDisplayName() {
		return "列";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
